﻿using System.Diagnostics.Contracts;
using NColony.Syndication.Receiver.Contracts;
using System.ComponentModel;
using System.Xml;

namespace NColony.Client.Wpf.ViewModels.Contracts
{
    /// <summary>
    /// Contract for main-window view models.
    /// </summary>
    [ContractClass(typeof(IMainWindowViewModelContract))]
    public interface IMainWindowViewModel : INotifyPropertyChanging, INotifyPropertyChanged
    {
        /// <summary>
        /// Gets or sets the feed reader.
        /// </summary>
        /// <value>The feed reader.</value>
        ISyndicationReader<ISyndicationFeed> FeedReader { get; }

        /// <summary>
        /// Loads the feed reader.
        /// </summary>
        /// <param name="feedAddress">The feed address.</param>
        void LoadFeedReader(string feedAddress);
    }
}